<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./jquery-3.2.1.min.js"></script>
    <style>
        div {
            width: 100px;
            height: 100px;
            position: relative;
            background-color: #00B4E1;
            left: 300px;
        }

    </style>
</head>
<body>
    <div></div>
</body>
<script>
//    $('div').animate({left:200},1000);
    $('div').hover(function(){
        $(this).stop(true).animate({height:'150',width:'300'},200);
    },function(){
        $(this).stop(true).animate({height:'22',width:'60'},200);
    });
</script>
</html>